package Bottle;

public class Bottle {
	
	private int totalVolume;
	private boolean isFull;
	private boolean isEmpty;
	private String bottleName;
	private int currentAmountOfWater;
	
	
	public Bottle(String inName, int startingAmount){
		bottleName = inName;
		currentAmountOfWater = startingAmount;
		if (currentAmountOfWater == 0){
			boolean isEmpty = true;
		}
		if (currentAmountOfWater == totalVolume){
			boolean isFull = true;
		}
		totalVolume = 1000;
	}
	
	public int getTotalVolume(){
		return totalVolume;
	}
	
	
	public int getCurrentAmountOfWater(){
		return currentAmountOfWater;
	}
	public void addWater(int howMuchWater){
		if(isFull){
			return;
		}
		currentAmountOfWater += howMuchWater;
	}
	
	public void pourWater(int howMuchWater){
		if(isEmpty){
			return;
		}
		currentAmountOfWater -= howMuchWater;
	}
	
	@Override
	public String toString() {
		String result = "";
		
		result += " Name: " + bottleName;
		result += " Current: " + currentAmountOfWater;

		return result;
	}
}
